package top.yinjinbiao.demo.netty.custom.arom;

import lombok.Data;

@Data
public class AROMDataPackage {

    private byte head_data_1 = AROMConstant.HEAD_DATA_1;// 起始字节1

    private byte head_data_2 = AROMConstant.HEAD_DATA_2;// 起始字节2

    private byte frameLength; // 帧长

    private byte hostId; // 主机ID

    private byte commandCode;// 命令代码

    private byte[] param; // 参数

    private byte crc;

    public AROMDataPackage(byte frameLength,byte hostId,byte commandCode, byte[] param,byte crc){
        this.frameLength = frameLength;
        this.hostId = hostId;
        this.commandCode = commandCode;
        this.param = param;
        this.crc = crc;

    }

}
